import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import User from './views/nav1/user.vue'
import echarts from './views/charts/echarts.vue'

import category from './views/base/category.vue'
import brand from './views/base/brand.vue'
import coupon from './views/base/coupon.vue'
import shopUser from './views/base/shopUser.vue'

import goods from './views/biz/goods.vue'
import goodsGallery from './views/biz/goodsGallery.vue'
import goodsIssue from './views/biz/goodsIssue.vue'
import goodsAttribute from './views/biz/goodsAttribute.vue'
import goodsSpecification from './views/biz/goodsSpecification.vue'
import product from './views/biz/product.vue'
import order from './views/biz/order.vue'
import orderExpress from './views/biz/orderExpress.vue'

import couponStat from './views/charts/couponStat.vue'


////注册全局组件
//import Vue from 'vue'
//Vue.component('table',Table);
//Vue.component('form',Form);

let routes = [
 {
     path: '/login',
     component: Login,
     name: '',
     title:'',
     hidden: true
 },
 {
     path: '/404',
     component: NotFound,
     name: '',
     title:'',
     hidden: true
 },
  {
     path: '/Home',
     component: Home,
     name: '',
     title:'',
     hidden: true
 },

/*    {
        path: '/',
        component: Home,
        name: '示例',
        title:'示例',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/main', component: Main, name: 'main', title:'主页', hidden: true },
            { path: '/table', component: Table, name: 'table', title:'表格'},
            { path: '/form', component: Form, name: 'form', title:'表单' },
            { path: '/user', component: User, name: 'user', title:'列表' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '图表示例',
        title:'图表示例',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts', title:'图表示例1' }
        ]
    },*/
    {
        path: '/',
        component: Home,
        name: '基础信息',
        title:'基础信息',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/category', component: category, name: 'category', title:'产品类别' },
            { path: '/brand', component: brand, name: 'brand', title:'品牌' },
			{ path: '/coupon', component: coupon, name: 'coupon', title:'优惠劵管理' },
			{ path: '/shopUser', component: shopUser, name: 'shopUser', title:'客户管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '业务数据',
        title:'业务数据',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/goods', component: goods, name: 'goods', title:'产品' },
            { path: '/goodsGallery', component: goodsGallery, name: 'goodsGallery', title:'产品展示图' },
            { path: '/goodsIssue', component: goodsIssue, name: 'goodsIssue', title:'产品问答' },
            { path: '/goodsAttribute', component: goodsAttribute, name: 'goodsAttribute', title:'产品属性' },
            { path: '/goodsSpecification', component: goodsSpecification, name: 'goodsSpecification', title:'产品特性' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '商城数据',
        title:'商城数据',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/product', component: product, name: 'product', title:'商品' },
			{ path: '/order', component: order, name: 'order', title:'交易订单' },
			{ path: '/orderExpress', component: orderExpress, name: 'orderExpress', title:'订单快递' }
        ]
    },
	{
	    path: '/',
	    component: Home,
	    name: '统计报表',
	    title:'统计报表',
	    iconCls: 'fa fa-id-card-o',
	    children: [
			{ path: '/echarts', component: echarts, name: 'echarts', title:'图表示例1' },
	        { path: '/couponStat', component: couponStat, name: 'couponStat', title:'优惠劵统计' }
			
	    ]
	},
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;